﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FindArbitrageConsole.Data;
using FindArbitrageConsole.Data.Model;

namespace FindArbitrageConsole.Equals
{
    public class ArbLinkComparer : IEqualityComparer<ArbitrageLinkData>
    {
        public bool Equals(ArbitrageLinkData x, ArbitrageLinkData y)
        {
            return x.KefId == y.KefId;
        }

        public int GetHashCode(ArbitrageLinkData obj)
        {
            return new { obj.KefId }.GetHashCode();
        }
    }
}
